Skip to content

Add custom trailing-slash sitemap#432

Merged
Dgiordano33 merged 3 commits into
mainfrom
docs/custom-sitemap
Jul 8, 2026
Merged

Add custom trailing-slash sitemap#432
Dgiordano33 merged 3 commits into
mainfrom
docs/custom-sitemap

Conversation

@Dgiordano33

Copy link
Copy Markdown
Collaborator

Custom sitemap.xml (569 trailing-slash URLs) that overrides Mintlifys auto-generated no-slash sitemap, so canonical + sitemap + served URL all agree on the trailing slash.

Why this is safe now

PR #430 reverted the sitemap because the commit also added a root-level scripts/generate-sitemap.mjs that broke the Mintlify build. Isolation test (PR #431, sitemap.xml only) proved Mintlify Deployment = success — the .mjs was the culprit, not the sitemap. This PR keeps the generator in .github/scripts/ (Mintlify never builds that tree).

Contents

  • sitemap.xml — 569 trailing-slash <loc>s, generated from docs.json nav.
  • .github/scripts/generate-sitemap.mjs — regenerates it (npm run generate-sitemap).
  • static-docs-checks CI fails if sitemap.xml drifts from docs.json.
  • No root scripts/ dir, no .mintignore change.

Registering with Google (manual, after merge)

The custom sitemap serves at https://www.checklyhq.com/docs-sitemap.xml (via the existing marketing proxy). It is NOT currently in robots.txt or the main sitemap index, so it must be submitted in Google Search Console -> Sitemaps. Optionally also add a Sitemap: line to the marketing robots.txt for discovery.

🤖 Generated with Claude Code

sitemap.xml at the repo root overrides Mintlify's auto-generated (no-slash)
sitemap with 569 trailing-slash URLs, matching the served/canonical form so
canonical + sitemap + served URL all agree.

- Generator lives in .github/scripts/generate-sitemap.mjs so Mintlify never
  builds it. A root-level scripts/*.mjs broke the Mintlify build in #430;
  isolation testing (PR #431) confirmed a bare sitemap.xml deploys cleanly
  (Mintlify Deployment = success) and the .mjs was the culprit.
- `npm run generate-sitemap` regenerates it from docs.json navigation.
- static-docs-checks CI regenerates and fails if sitemap.xml drifts.

Registering with Google: submit https://www.checklyhq.com/docs-sitemap.xml in
Search Console (the marketing proxy already serves the custom sitemap there).

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@mintlify

mintlify Bot commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
checkly-422f444a 🟢 Ready View Preview Jul 8, 2026, 5:19 PM

💡 Tip: Enable Workflows to automatically generate PRs for you.

@Dgiordano33 Dgiordano33 merged commit 11aa9e3 into main Jul 8, 2026
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant